package day14;

public class hw4Vehicle {
    private String type;
    
    public hw4Vehicle(String type) {
        this.type = type;
    }
    
    public String getType() {
        return type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
    
    public void start() {
        System.out.println("启动" + type);
    }
    
    public void move() {
        System.out.println("驾驶" + type + "行驶在路上");
    }
    
    public void stop() {
        System.out.println("停止" + type);
    }
}